import request from '@/utils/request'

// 水情监测列表
export function listsq(query) {
    return request({
        url: '/waterManagement/WaterRegimeMonitor/list',
        method: 'get',
        params: query
    })
}

// 水量监测列表
export function listsl(query) {
    return request({
        url: '/waterManagement/WaterRegimeMonitor/listWaterYieldR',
        method: 'get',
        params: query
    })
}

// 水情监测统计
export function sqjccount() {
    return request({
        url: '/waterManagement/stationInforMation/selectStationCount',
        method: 'get'
    })
}
//行政区划（下拉选）
export function getxzqh() {
    return request({
        url: '/datam/AdBase/roleAreaByuser',
        method: 'get'
    })
}

//查询渠道详情
export function getinfo(query) {
    return request({
        url: '/waterManagement/channelWaterRegime/selStationByStCode',
        method: 'get',
		params: query
    })
}

//查询工程照片列表
export function getimglist(query) {
    return request({
        url: '/waterManagement/channelWaterRegime/selectChannelImageByStCode',
        method: 'get',
		params: query
    })
}

//查询历史照片列表
export function gethisimg(query) {
    return request({
        url: '/waterManagement/channelWaterRegime/selStatisticalImageByStCodeDate',
        method: 'get',
		params: query
    })
}


//根据code查询名称
export function getcname(query) {
    return request({
        url: '/waterManagement/WaterRegimeMonitor/queryStatNm',
        method: 'get',
		params: query
    })
}

//查询实时监测列表 水情
export function getsslist(query) {
    return request({
        url: '/waterManagement/StStationR/list',
        method: 'get',
		params: query
    })
}

//查询实时监测列表 水量
export function getsslistsl(query) {
  return request({
    url: '/waterManagement/WrStationR/list',
    method: 'get',
    params: query
  })
}

//查询实时监测列表过程线 水情
export function getsslistline(query) {
    return request({
        url: '/waterManagement/StStationR/selLineMonitoringInformationByStatCd',
        method: 'get',
		params: query
    })
}

// //查询实时监测列表过程线 水量
export function getsslistlinesl(query) {
    return request({
        url: '/waterManagement/WrStationR/selLineMonitoringInformationByStatCd',
        method: 'get',
		params: query
    })
}


//查询日统计列表
export function getrtjlist(query) {
    return request({
        url: '/waterManagement/WrStatvolD/list',
        method: 'get',
        params: query
    })
}

//查询月统计列表
export function getytjlist(query) {
    return request({
        url: '/waterManagement/WrStatvolM/list',
        method: 'get',
        params: query
    })
}
//查询年统计列表
export function getntjlist(query) {
    return request({
        url: '/waterManagement/WrStatvolY/list',
        method: 'get',
        params: query
    })
}

//查询曲线名称列表
export function getqxlist(query) {
    return request({
        url: '/waterManagement/RelZQ/selCurvNmByStCode',
        method: 'get',
        params: query
    })
}

//查询折线图列表
export function getzxlist(query) {
    return request({
        url: '/waterManagement/RelZQ/selCurnNumByStCode',
        method: 'get',
        params: query
    })
}

//查询table列表
export function gettblist(query) {
    return request({
        url: '/waterManagement/RelZQ/selectRelZQListByStCodeAndCurvNm',
        method: 'get',
        params: query
    })
}

//行政区划（下拉选）
//查询乡镇的
//add by dm @date:2021-11-24
export function getAdList45() {
    return request({
        url: '/datam/AdBase/roleArea45',
        method: 'get'
    })
}

//查询table列表
export function upswitch(query) {
    return request({
        url: '/waterManagement/RelZQ/updateRelZQEnabType',
        method: 'put',
        params: query
    })
}


//行政区划过滤村-大队（下拉选）
export function getxzqhNoDd() {
    return request({
        url: '/datam/AdBase/roleAreaByuserNoDd',
        method: 'get'
    })
}

//在线监拍图片
export function statisticalImageList(query) {
    return request({
        url: '/waterManagement/channelWaterRegime/statisticalImageList',
        method: 'get',
        params: query
    })
}
